<?php
namespace app\admin\controller;
use think\facade\Db;
use think\facade\View;

class Order
{
    public function orderDetail()
    {
        return View::fetch();
    }
    public function orderList()
    {
        $list=Db::name('order')->alias('o')->join(['ecm_user'=>'u'],'u.id=o.uid')->column('o.id,u.uname as name,o.price,o.status,o.addtime,o.remark');
        View::assign('list',$list);
        return view();
    }
}